package com.example.foo.admin.task;

import com.example.foo.ftt.service.FttProfitFacadeService;

//网体分红周结算任务
@org.springframework.stereotype.Component("fttWeekProfitSettleTask")
public class FttWeekProfitSettleTask {

	private final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(getClass());

	private final FttProfitFacadeService fttProfitFacadeService;

	public FttWeekProfitSettleTask(FttProfitFacadeService fttProfitFacadeService) {
		this.fttProfitFacadeService = fttProfitFacadeService;
	}

	public void execute() throws Exception {
		fttProfitFacadeService.createFttWeekProfitSettle();

		log.info("DONE!");
	}

}
